package com.itheima.mapper;

import com.itheima.domain.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/*
    持久层操作接口(dao)
        mapper代理开发模式不需要实现类
 */
public interface UserMapper {
    List<User> findAll();
    User findById(int id);
    User findByNameAndPwd(@Param("username") String username, @Param("pwd") String pwd);
    List<User> findCondition(User user);
    List<User> findByIds(List<Integer> lists);
}
